import service from "@/utils/request";

// 用户登录接口
export function loginService(userAccount , password) {
    // 参数 url,
    return service({
        url:"/sysUser/login",
        method:"POST",
        data:{userAccount,password}
    })
} 

// 获取用户信息
export function getUserInfoService() {
    return service({
        url:"/sysUser/sysUserInfo",
        method:"GET"
    })
}

// 用户退出登录
export function logoutService() {
    return service({
        url:"/sysUser/logout",
        method:"DELETE"
    })
}

